home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
001-100
/
001-025
/
019
/
lockmon
/
poster
< prev
next >
Wrap
Text File
|
1995-03-17
|
1KB
|
29 lines
File: AMIGA.2555
From: dewi@druca.UUCP (WilliamsD)
Newsgroups: net.micro.amiga
Subject: How many locks have I left lying around?
Date: 25 Mar 86 15:38:46 GMT
Organization: AT&T Information Systems Labs, Denver, Co
Lines: 215
Keywords: AmigaDOS, locks, resource allocation/management
The following piece of code is something I cooked up in order to check if
I was unlocking all my filesystem locks in my current project. I use it
with AvailMem (Avail?, I forget at the moment...) and Frags to ensure that
my code isn't slowly dribbling away pieces of the system.
It's a rather offbeat way of doing it, but I thought I'd post it to the net
for 2 reasons:
1. Somebody might find it useful.
2. Somebody might suggest a better way of doing it! I'm not
overly happy with this approach.
It works most OK of the time, but once in a blue moon the system will
request that my boot volume get re-mounted before I get around to analyzing
its DeviceList entries. No harm done, LockMon will just report it as mounted.
Yours in Amiga-ing,
Dewi Williams
uucp: ..!ihnp4!druca!dewi
phone: (303) 538 4884